package org.linlinjava.litemall.db.dao;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.linlinjava.litemall.db.domain.LitemallBenefit;
import org.linlinjava.litemall.db.domain.LitemallBenefitDetail;
import org.linlinjava.litemall.db.domain.LitemallBenefitExample;

import java.math.BigDecimal;
import java.util.List;

public interface BenefitMapper {
    /**
     * 计算总收益
     * @param userId
     * @return
     */
    BigDecimal sumBenefit(@Param("userId")Integer userId);
}
